import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/tag',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/tag',
    method: 'put',
    data
  })
}

export function page(data) {
  return request({
    url: '/tag/page',
    method: 'post',
    data
  })
}

export function getById() {
  return request({
    url: '/tag',
    method: 'get'
  })
}

export function getTagList(type) {
  return request({
    url: '/tag/list/' + type,
    method: 'get'
  })
}



